package com.zhyz.bookstore.dao;

import com.zhyz.bookstore.entity.Admin;
import com.zhyz.bookstore.entity.Book;
import com.zhyz.bookstore.entity.Category;
import com.zhyz.bookstore.entity.User;

import java.util.List;

public interface ManagerDao {

    //管理员登录
    Admin login(String username, String password);
    void addCategory(Category category);
    List<Category> getAllCategory();
    Category getCategory(String CategoryId);
    void upCategory(Category category);
    void delCategroy(String CategoryId);
    void addBooks(Book book);
    Book getBooks(String BookId);
    void upBook(String BookId, String BookName, String BookAuthor, String BookPress, String BookDesc,
                double BookPrice, String BookKunumber);
    void delBook(String bookId);
    List<Book> getCategoryBook(String cid);

    //添加工作人员
    void addAdmin(Admin admin);

    //修改登录密码
    void managerPassword(Admin admin);

    //修改个人信息
    void managerInformation(Admin admin);

    //用户信息管理
    List<User> findUsers();

    void delUser(String userId);
}
